keyboard_settings = {
    "_version": 1.0,
    "os_codes": {
        "nt": {
            (
                0.0,
                0.0
            ): (
                0x1b,
                "Escape"
            ),
            (
                0.0,
                1.0
            ): (
                0x70,
                "F1"
            ),
            (
                0.0,
                2.0
            ): (
                0x71,
                "F2"
            ),
            (
                0.0,
                3.0
            ): (
                0x72,
                "F3"
            ),
            (
                0.0,
                4.0
            ): (
                0x73,
                "F4"
            ),
            (
                0.0,
                5.0
            ): (
                0x74,
                "F5"
            ),
            (
                0.0,
                6.0
            ): (
                0x75,
                "F6"
            ),
            (
                0.0,
                7.0
            ): (
                0x76,
                "F7"
            ),
            (
                0.0,
                8.0
            ): (
                0x77,
                "F8"
            ),
            (
                0.0,
                9.0
            ): (
                0x78,
                "F9"
            ),
            (
                0.0,
                11.0
            ): (
                0x7a,
                "F11"
            ),
            (
                0.0,
                12.0
            ): (
                0x7b,
                "F12"
            ),
            (
                0.0,
                14.0
            ): (
                0x91,
                "Scroll_Lock"
            ),
            (
                0.0,
                15.0
            ): (
                0x13,
                "Pause"
            ),
            (
                1.0,
                0.0
            ): (
                0xc0,
                "quoteleft"
            ),
            (
                1.0,
                1.0
            ): (
                0x31,
                "1"
            ),
            (
                1.0,
                2.0
            ): (
                0x32,
                "2"
            ),
            (
                1.0,
                3.0
            ): (
                0x33,
                "3"
            ),
            (
                1.0,
                4.0
            ): (
                0x34,
                "4"
            ),
            (
                1.0,
                5.0
            ): (
                0x35,
                "5"
            ),
            (
                1.0,
                6.0
            ): (
                0x36,
                "6"
            ),
            (
                1.0,
                7.0
            ): (
                0x37,
                "7"
            ),
            (
                1.0,
                8.0
            ): (
                0x38,
                "8"
            ),
            (
                1.0,
                9.0
            ): (
                0x39,
                "9"
            ),
            (
                1.0,
                10.0
            ): (
                0x30,
                "0"
            ),
            (
                1.0,
                11.0
            ): (
                0xbd,
                "minus"
            ),
            (
                1.0,
                12.0
            ): (
                0xbb,
                "equal"
            ),
            (
                1.0,
                14.0
            ): (
                0x8,
                "BackSpace"
            ),
            (
                1.0,
                15.0
            ): (
                0x2d,
                "Insert"
            ),
            (
                1.0,
                16.0
            ): (
                0x24,
                "Home"
            ),
            (
                1.0,
                17.0
            ): (
                0x21,
                "Prior"
            ),
            (
                1.0,
                18.0
            ): (
                0x90,
                "Num_Lock"
            ),
            (
                1.0,
                19.0
            ): (
                0x6f,
                "slash"
            ),
            (
                1.0,
                20.0
            ): (
                0x6a,
                "asterisk"
            ),
            (
                1.0,
                21.0
            ): (
                0x6d,
                "minus"
            ),
            (
                2.0,
                1.0
            ): (
                0x51,
                "q"
            ),
            (
                2.0,
                2.0
            ): (
                0x57,
                "w"
            ),
            (
                2.0,
                3.0
            ): (
                0x45,
                "e"
            ),
            (
                2.0,
                4.0
            ): (
                0x52,
                "r"
            ),
            (
                2.0,
                5.0
            ): (
                0x54,
                "t"
            ),
            (
                2.0,
                6.0
            ): (
                0x59,
                "y"
            ),
            (
                2.0,
                7.0
            ): (
                0x55,
                "u"
            ),
            (
                2.0,
                8.0
            ): (
                0x49,
                "i"
            ),
            (
                2.0,
                9.0
            ): (
                0x4f,
                "o"
            ),
            (
                2.0,
                10.0
            ): (
                0x50,
                "p"
            ),
            (
                2.0,
                11.0
            ): (
                0xdb,
                "bracketleft"
            ),
            (
                2.0,
                12.0
            ): (
                0xdd,
                "bracketright"
            ),
            (
                2.0,
                13.0
            ): (
                0xdc,
                "backslash"
            ),
            (
                2.0,
                14.0
            ): (
                0x2e,
                "Delete"
            ),
            (
                2.0,
                15.0
            ): (
                0x23,
                "End"
            ),
            (
                2.0,
                16.0
            ): (
                0x22,
                "Next"
            ),
            (
                2.0,
                17.0
            ): (
                0x67,
                "7"
            ),
            (
                2.0,
                18.0
            ): (
                0x68,
                "8"
            ),
            (
                2.0,
                19.0
            ): (
                0x69,
                "9"
            ),
            (
                2.0,
                20.0
            ): (
                0x6b,
                "plus"
            ),
            (
                3.0,
                0.0
            ): (
                0x14,
                "Caps_Lock"
            ),
            (
                3.0,
                1.0
            ): (
                0x41,
                "a"
            ),
            (
                3.0,
                2.0
            ): (
                0x53,
                "s"
            ),
            (
                3.0,
                3.0
            ): (
                0x44,
                "d"
            ),
            (
                3.0,
                4.0
            ): (
                0x46,
                "f"
            ),
            (
                3.0,
                5.0
            ): (
                0x47,
                "g"
            ),
            (
                3.0,
                6.0
            ): (
                0x48,
                "h"
            ),
            (
                3.0,
                7.0
            ): (
                0x4a,
                "j"
            ),
            (
                3.0,
                8.0
            ): (
                0x4b,
                "k"
            ),
            (
                3.0,
                9.0
            ): (
                0x4c,
                "l"
            ),
            (
                3.0,
                10.0
            ): (
                0xba,
                "semicolon"
            ),
            (
                3.0,
                11.0
            ): (
                0xde,
                "quoteright"
            ),
            (
                3.0,
                13.0
            ): (
                0xd,
                "Return"
            ),
            (
                3.0,
                14.0
            ): (
                0x64,
                "4"
            ),
            (
                3.0,
                15.0
            ): (
                0x65,
                "5"
            ),
            (
                3.0,
                16.0
            ): (
                0x66,
                "6"
            ),
            (
                4.0,
                0.0
            ): (
                0x10,
                "Shift_L"
            ),
            (
                4.0,
                2.0
            ): (
                0x5a,
                "z"
            ),
            (
                4.0,
                3.0
            ): (
                0x58,
                "x"
            ),
            (
                4.0,
                4.0
            ): (
                0x43,
                "c"
            ),
            (
                4.0,
                5.0
            ): (
                0x56,
                "v"
            ),
            (
                4.0,
                6.0
            ): (
                0x42,
                "b"
            ),
            (
                4.0,
                7.0
            ): (
                0x4e,
                "n"
            ),
            (
                4.0,
                8.0
            ): (
                0x4d,
                "m"
            ),
            (
                4.0,
                9.0
            ): (
                0xbc,
                "comma"
            ),
            (
                4.0,
                10.0
            ): (
                0xbe,
                "period"
            ),
            (
                4.0,
                11.0
            ): (
                0xbf,
                "slash"
            ),
            (
                4.0,
                12.0
            ): (
                0x10,
                "Shift_R"
            ),
            (
                4.0,
                14.0
            ): (
                0x26,
                "Up"
            ),
            (
                4.0,
                16.0
            ): (
                0x61,
                "1"
            ),
            (
                4.0,
                17.0
            ): (
                0x62,
                "2"
            ),
            (
                4.0,
                18.0
            ): (
                0x63,
                "3"
            ),
            (
                4.0,
                19.0
            ): (
                0xd,
                "Return"
            ),
            (
                5.0,
                0.0
            ): (
                0x11,
                "Control_L"
            ),
            (
                5.0,
                1.0
            ): (
                0x5b,
                "Win_L"
            ),
            (
                5.0,
                3.0
            ): (
                0x20,
                "space"
            ),
            (
                5.0,
                5.0
            ): (
                0x5c,
                "Win_R"
            ),
            (
                5.0,
                6.0
            ): (
                0x5d,
                "App"
            ),
            (
                5.0,
                7.0
            ): (
                0x11,
                "Control_R"
            ),
            (
                5.0,
                8.0
            ): (
                0x25,
                "Left"
            ),
            (
                5.0,
                9.0
            ): (
                0x28,
                "Down"
            ),
            (
                5.0,
                10.0
            ): (
                0x27,
                "Right"
            ),
            (
                5.0,
                11.0
            ): (
                0x60,
                "0"
            ),
            (
                5.0,
                12.0
            ): (
                0x6e,
                "period"
            )
        },
        "posix": {
            (
                0.0,
                0.0
            ): (
                0x9,
                "Escape"
            ),
            (
                0.0,
                1.0
            ): (
                0x43,
                "F1"
            ),
            (
                0.0,
                2.0
            ): (
                0x44,
                "F2"
            ),
            (
                0.0,
                3.0
            ): (
                0x45,
                "F3"
            ),
            (
                0.0,
                4.0
            ): (
                0x46,
                "F4"
            ),
            (
                0.0,
                5.0
            ): (
                0x47,
                "F5"
            ),
            (
                0.0,
                6.0
            ): (
                0x48,
                "F6"
            ),
            (
                0.0,
                7.0
            ): (
                0x49,
                "F7"
            ),
            (
                0.0,
                8.0
            ): (
                0x4a,
                "F8"
            ),
            (
                0.0,
                9.0
            ): (
                0x4b,
                "F9"
            ),
            (
                0.0,
                11.0
            ): (
                0x5f,
                "F11"
            ),
            (
                0.0,
                12.0
            ): (
                0x60,
                "F12"
            ),
            (
                0.0,
                14.0
            ): (
                0x4e,
                "Scroll_Lock"
            ),
            (
                0.0,
                15.0
            ): (
                0x7f,
                "Pause"
            ),
            (
                1.0,
                0.0
            ): (
                0x31,
                "grave"
            ),
            (
                1.0,
                1.0
            ): (
                0xa,
                "1"
            ),
            (
                1.0,
                2.0
            ): (
                0xb,
                "2"
            ),
            (
                1.0,
                3.0
            ): (
                0xc,
                "3"
            ),
            (
                1.0,
                4.0
            ): (
                0xd,
                "4"
            ),
            (
                1.0,
                5.0
            ): (
                0xe,
                "5"
            ),
            (
                1.0,
                6.0
            ): (
                0xf,
                "6"
            ),
            (
                1.0,
                7.0
            ): (
                0x10,
                "7"
            ),
            (
                1.0,
                8.0
            ): (
                0x11,
                "8"
            ),
            (
                1.0,
                9.0
            ): (
                0x12,
                "9"
            ),
            (
                1.0,
                10.0
            ): (
                0x13,
                "0"
            ),
            (
                1.0,
                11.0
            ): (
                0x14,
                "minus"
            ),
            (
                1.0,
                12.0
            ): (
                0x15,
                "equal"
            ),
            (
                1.0,
                14.0
            ): (
                0x16,
                "BackSpace"
            ),
            (
                1.0,
                15.0
            ): (
                0x76,
                "Insert"
            ),
            (
                1.0,
                16.0
            ): (
                0x6e,
                "Home"
            ),
            (
                1.0,
                17.0
            ): (
                0x70,
                "Prior"
            ),
            (
                1.0,
                18.0
            ): (
                0x4d,
                "Num_Lock"
            ),
            (
                1.0,
                19.0
            ): (
                0x6a,
                "KP_Divide"
            ),
            (
                1.0,
                20.0
            ): (
                0x3f,
                "KP_Multiply"
            ),
            (
                1.0,
                21.0
            ): (
                0x52,
                "KP_Subtract"
            ),
            (
                2.0,
                1.0
            ): (
                0x18,
                "q"
            ),
            (
                2.0,
                2.0
            ): (
                0x19,
                "w"
            ),
            (
                2.0,
                3.0
            ): (
                0x1a,
                "e"
            ),
            (
                2.0,
                4.0
            ): (
                0x1b,
                "r"
            ),
            (
                2.0,
                5.0
            ): (
                0x1c,
                "t"
            ),
            (
                2.0,
                6.0
            ): (
                0x1d,
                "y"
            ),
            (
                2.0,
                7.0
            ): (
                0x1e,
                "u"
            ),
            (
                2.0,
                8.0
            ): (
                0x1f,
                "i"
            ),
            (
                2.0,
                9.0
            ): (
                0x20,
                "o"
            ),
            (
                2.0,
                10.0
            ): (
                0x21,
                "p"
            ),
            (
                2.0,
                11.0
            ): (
                0x22,
                "bracketleft"
            ),
            (
                2.0,
                12.0
            ): (
                0x23,
                "bracketright"
            ),
            (
                2.0,
                14.0
            ): (
                0x77,
                "Delete"
            ),
            (
                2.0,
                15.0
            ): (
                0x73,
                "End"
            ),
            (
                2.0,
                16.0
            ): (
                0x75,
                "Next"
            ),
            (
                2.0,
                17.0
            ): (
                0x4f,
                "KP_7"
            ),
            (
                2.0,
                18.0
            ): (
                0x50,
                "KP_8"
            ),
            (
                2.0,
                19.0
            ): (
                0x51,
                "KP_9"
            ),
            (
                2.0,
                20.0
            ): (
                0x56,
                "KP_Add"
            ),
            (
                3.0,
                0.0
            ): (
                0x42,
                "Caps_Lock"
            ),
            (
                3.0,
                1.0
            ): (
                0x26,
                "a"
            ),
            (
                3.0,
                2.0
            ): (
                0x27,
                "s"
            ),
            (
                3.0,
                3.0
            ): (
                0x28,
                "d"
            ),
            (
                3.0,
                4.0
            ): (
                0x29,
                "f"
            ),
            (
                3.0,
                5.0
            ): (
                0x2a,
                "g"
            ),
            (
                3.0,
                6.0
            ): (
                0x2b,
                "h"
            ),
            (
                3.0,
                7.0
            ): (
                0x2c,
                "j"
            ),
            (
                3.0,
                8.0
            ): (
                0x2d,
                "k"
            ),
            (
                3.0,
                9.0
            ): (
                0x2e,
                "l"
            ),
            (
                3.0,
                10.0
            ): (
                0x2f,
                "semicolon"
            ),
            (
                3.0,
                11.0
            ): (
                0x30,
                "apostrophe"
            ),
            (
                3.0,
                12.0
            ): (
                0x33,
                "backslash"
            ),
            (
                3.0,
                13.0
            ): (
                0x24,
                "Return"
            ),
            (
                3.0,
                14.0
            ): (
                0x53,
                "KP_4"
            ),
            (
                3.0,
                15.0
            ): (
                0x54,
                "KP_5"
            ),
            (
                3.0,
                16.0
            ): (
                0x55,
                "KP_6"
            ),
            (
                4.0,
                0.0
            ): (
                0x32,
                "Shift_L"
            ),
            (
                4.0,
                1.0
            ): (
                0x5e,
                "less"
            ),
            (
                4.0,
                2.0
            ): (
                0x34,
                "z"
            ),
            (
                4.0,
                3.0
            ): (
                0x35,
                "x"
            ),
            (
                4.0,
                4.0
            ): (
                0x36,
                "c"
            ),
            (
                4.0,
                5.0
            ): (
                0x37,
                "v"
            ),
            (
                4.0,
                6.0
            ): (
                0x38,
                "b"
            ),
            (
                4.0,
                7.0
            ): (
                0x39,
                "n"
            ),
            (
                4.0,
                8.0
            ): (
                0x3a,
                "m"
            ),
            (
                4.0,
                9.0
            ): (
                0x3b,
                "comma"
            ),
            (
                4.0,
                10.0
            ): (
                0x3c,
                "period"
            ),
            (
                4.0,
                11.0
            ): (
                0x3d,
                "slash"
            ),
            (
                4.0,
                12.0
            ): (
                0x3e,
                "Shift_R"
            ),
            (
                4.0,
                14.0
            ): (
                0x6f,
                "Up"
            ),
            (
                4.0,
                16.0
            ): (
                0x57,
                "KP_1"
            ),
            (
                4.0,
                17.0
            ): (
                0x58,
                "KP_2"
            ),
            (
                4.0,
                18.0
            ): (
                0x59,
                "KP_3"
            ),
            (
                4.0,
                19.0
            ): (
                0x68,
                "KP_Enter"
            ),
            (
                5.0,
                0.0
            ): (
                0x25,
                "Control_L"
            ),
            (
                5.0,
                1.0
            ): (
                0x85,
                "Super_L"
            ),
            (
                5.0,
                2.0
            ): (
                0x40,
                "Alt_L"
            ),
            (
                5.0,
                3.0
            ): (
                0x41,
                "space"
            ),
            (
                5.0,
                4.0
            ): (
                0x6c,
                "Alt_R"
            ),
            (
                5.0,
                5.0
            ): (
                0x86,
                "Super_R"
            ),
            (
                5.0,
                6.0
            ): (
                0x87,
                "Menu"
            ),
            (
                5.0,
                7.0
            ): (
                0x69,
                "Control_R"
            ),
            (
                5.0,
                8.0
            ): (
                0x71,
                "Left"
            ),
            (
                5.0,
                9.0
            ): (
                0x74,
                "Down"
            ),
            (
                5.0,
                10.0
            ): (
                0x72,
                "Right"
            ),
            (
                5.0,
                11.0
            ): (
                0x5a,
                "KP_0"
            ),
            (
                5.0,
                12.0
            ): (
                0x5b,
                "KP_Decimal"
            )
        }
    }
}
